import os

folder_path = "C:\\Users\\Administrator\\Desktop\\shuju\\hje\\images"

for filename in os.listdir(folder_path):
    if filename.endswith(".JPG"):
        old_filepath = os.path.join(folder_path, filename)
        new_filepath = os.path.join(folder_path, filename.replace(".JPG", ".jpg"))
        os.rename(old_filepath, new_filepath)
        print(f"Renamed {filename} to {filename.replace('.JPG', '.jpg')}")
